#ifndef HYSTORY_H
#define HYSTORY_H

#include <QtGui>
#include <QtSql>
#include <QSqlDatabase>
#include <QSqlError>
#include <QStringList>
#include <QSqlQuery>
#include <QVariant>
#include <QList>

#include <QMessageBox>

#include <iostream>

class hystory
{
    QSqlDatabase db;
    QSqlTableModel *model;
    QSqlQuery* query;
public:
    hystory();
    void createBD();
    void add(int inputSignal, int kontrolGrade, int signalAfterTransmit, int mistake, int outputSignal);
    void clear();
    void initializeModel();
    QTableView* createView();
    ~hystory();
};

#endif // HYSTORY_H
